import 'package:flutter_screenutil/flutter_screenutil.dart';

class ScreenAdapter {

  static width(num v){
    return v.w;
  }

  static height(num v){
    return v.h;
  }

  static fontSize(num v){
    return v.sp;
  } 
  //获取屏幕宽度
  static getScreenWidth(num v){
    // return ScreenUtil().screenWidth;
    return 1.sw;
  }
  //获取屏幕高度
  static getScreenHeight(num v){
    // return ScreenUtil().screenHeight;
    return 1.sh;
  } 
  //状态栏高度 dp 刘海屏会更高
  static getStatusBarHeight(){
    return ScreenUtil().statusBarHeight;
  }
}